package com.un.ebs.order.domain;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (OrderReportExt)表实体类
 *
 * @author liubo
 * @since 2020-07-24 17:24:08
 */
@Data
@Component
@TableName("v_order_report_ext")
@SuppressWarnings("serial")
public class OrderReportExt extends Model<OrderReportExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "dept_id", length = 40, precision = 0)
    private String deptId;

    @DbField(name = "dept_name", length = 255, precision = 0)
    private String deptName;

    @DbField(name = "dept_sort", length = -1, precision = 0)
    private Integer deptSort;

    @DbField(name = "cust_id", length = 40, precision = 0)
    private String custId;

    @DbField(name = "cust_name", length = 100, precision = 0)
    private String custName;

    @DbField(name = "source_dict", length = 100, precision = 0)
    private String sourceDict;

    @DbField(name = "source_dict_desc", length = 100, precision = 0)
    private String sourceDictDesc;

    @DbField(name = "city_name", length = 50, precision = 0)
    private String cityName;

    @DbField(name = "county_name", length = 50, precision = 0)
    private String countyName;

    @DbField(name = "submit_time", length = -1, precision = 0)
    private Date submitTime;

    @DbField(name = "personnel_id", length = 40, precision = 0)
    private String personnelId;

    @DbField(name = "personnel_name", length = 100, precision = 0)
    private String personnelName;

    @DbField(name = "name_as", length = 2100, precision = 0)
    private String nameAs;

    @DbField(name = "attr_value", length = 200, precision = 0)
    private String attrValue;

    @DbField(name = "spu_id", length = 40, precision = 0)
    private String spuId;

    @DbField(name = "order_code", length = 100, precision = 0)
    private String orderCode;

    @DbField(name = "payment_time", length = -1, precision = 0)
    private Date paymentTime;

    @DbField(name = "plan_money", length = 21, precision = 8)
    private Double planMoney;

    @DbField(name = "real_money", length = 38, precision = 4)
    private Double realMoney;

    @DbField(name = "discount_money", length = 10, precision = 4)
    private Double discountMoney;

    @DbField(name = "discount_rate", length = 36, precision = 19)
    private Double discountRate;

    @DbField(name = "is_main_sale", length = -1, precision = 0)
    private Boolean isMainSale;

    @DbField(name = "payment_status", length = -1, precision = 0)
    private Integer paymentStatus;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;


}